<template>
  <div>
    <p>我是子组件，我用来显示插槽</p>
    <slot name="top"></slot>
    <slot name="default"></slot>
    <slot
      v-for="item in arr"
      name="list"
      :item="item"
    ></slot>
  </div>
</template>

<script>
export default {
    data() {
      return {
        arr: ['早饭','午饭','晚饭']
      }
    },
}
</script>

<style>

</style>